Skip to content

Test script for kinect and usbcam node#3

Open
fatcloud wants to merge 4 commits intotoddsampson:masterfrom
fatcloud:master
Open

Test script for kinect and usbcam node#3
fatcloud wants to merge 4 commits intotoddsampson:masterfrom
fatcloud:master

Conversation

@fatcloud
Copy link

First of all, thank you Mr. Todd! for this repo helped me a lot in getting started with ROS and docker-compose stuff.

I wrote two bash scripts based on your post along with two docker-compose files that can set up ros nodes to test kinect and usbcam. Simply do:

$ cd ros-docker
$ ./ros-kinect/kinectViewer.sh

or

$ cd ros-docker
$ ./ros-usbcam/usbcamViewer.sh

then a window displaying kinect/usbcam frames shows up.

In detail, the script would download docker-compose1.5 into the repo automatically, run xhost +,
then execute docker-compose up.

Once it is runnung, simply press ctrl + c will stops and remove the containers created during the process and recover the access control for X server by xhost-

Not sure if this is going to help anybody or be of any use in the future.
Anyway, have a nice day!

@fatcloud
Copy link
Author

fatcloud commented Jul 17, 2016

The updated script and yml files no longer rely on previous version docker with only experimental network functionality. They work with docker 1.11.2 + docker 1.6.2 now.

Simply

cd ros-docker/examples/ros-kinect
./run.sh

then a window showing kinect image shows up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant